<template>
	<!-- 编辑弹窗 -->
	<a-modal title="竣工项目资料归档清单添加" 
	:visible="visible" 
	:width="1010" 
	@cancel="() => { $emit('cancel') }"
	@ok="submit"
	>
		<a-form>
			<a-row :gutter="24">
				<a-col :md="8" :sm="8">
					<a-form-item label="资料名称" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						{{model.schemeName}}
					</a-form-item>
				</a-col>
				<a-col :md="8" :sm="8">
				  <a-form-item label="是否齐全"
				               :labelCol="{lg: {span: 5}, sm: {span:5}}"
				               :wrapperCol="{lg: {span: 17}, sm: {span: 17} }">
				   <a-select placeholder="请选择" @select="handleChange">
				     <a-select-option value="1">是</a-select-option>
				     <a-select-option value="0">否</a-select-option>
				   </a-select>
				  </a-form-item>
				</a-col>
				<a-col :md="8" :sm="8">
					<a-form-item label="资料份数" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						<BaseInput v-model="objFrom.numberOfCopies" />
					</a-form-item>
				</a-col>
				<a-col :md="8" :sm="8">
					<a-form-item label="应保管期限" 
					:labelCol="{ lg: { span: 7 }, sm: { span: 7 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						{{model.storagePeriod}}
					</a-form-item>
				</a-col>
				<a-col :md="8" :sm="8">
					<a-form-item label="保起时间" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						<a-date-picker @change="KeepUp" style="width: 100%"/>
					</a-form-item>
				</a-col>
				<a-col :md="8" :sm="8">
					<a-form-item label="保管截止" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						{{11111}}
					</a-form-item>
				</a-col>
			</a-row>
		</a-form>
	</a-modal>
</template>

<script>
	export default{
		props:{
			visible: {
			  type: Boolean,
			  required: true
			},
			model: {
			  type: Object,
			  default: () => null
			}
		},
		data(){
			return{
				objFrom:{}
			}
		},
		methods:{
			submit(){
				this.$emit('ok',this.objFrom)
			},
			KeepUp(date, datestring){
				this.objFrom.storageTime = datestring
			},
			handleChange(value){
				this.objFrom.isItComplete = value
				
			}
		}
	}
</script>

<style>
</style>
